package com.nervenets.web.controller.order;

import com.nervenets.web.controller.TokenParams;
import com.nervenets.web.enumeration.PayType;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.Positive;

@EqualsAndHashCode(callSuper = true)
@Data
public class OrderCreateParams extends TokenParams {
    @ApiModelProperty(value = "用户地址ID", required = true)
    @Positive(message = "请选择正确的地址")
    private long addressId;
    @ApiModelProperty(value = "余额抵扣额度")
    private long deduction;
    @ApiModelProperty(value = "支付方式", required = true)
    private PayType payType;
    @ApiModelProperty(value = "预约取件时间段Id", required = true)
    @Positive(message = "请选择正确的预约取件时间段Id")
    private long serviceTimeId;
    @ApiModelProperty(value = "预约取件时间当天00:00:00的时间戳", required = true)
    @Positive(message = "请选择正确的预约取件时间当天00:00:00的时间戳")
    private int serviceDatingTime;
    @ApiModelProperty(value = "订单备注")
    private String remark;
    @ApiModelProperty(value = "小程序表单提交formId")
    private String formId;
}
